package com.huatai.manage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huatai.manage.entity.TbTrialSubjectEntity;
import com.huatai.manage.query.PageQuery;

import com.huatai.manage.query.TrialIdPageQuery;
import com.huatai.manage.vo.PageVo;
import com.huatai.manage.vo.ResultVo;
import com.huatai.manage.vo.TbTrialSubjectVo;

import java.util.List;
import java.util.Map;

/**
 * 试验对象;(TbTrialSubjectsManage)表服务接口
 *
 * @author luoxc
 * @since 2023-03-14 14:13:39
 */
public interface TbTrialSubjectService extends IService<TbTrialSubjectEntity> {

	PageVo pageList(PageQuery<TbTrialSubjectEntity> pageQuery);

	List<TbTrialSubjectVo> subjectList();

	TbTrialSubjectVo getBySubjectId(String subjectId);

	PageVo pageByTrialId(TrialIdPageQuery trialIdPageQuery);

	List<TbTrialSubjectVo> listByTrialId(String trialId);

	List<Map<String,Object>> getByTrialId(String trialId);

	boolean update(TbTrialSubjectEntity tbTrialSubjectEntity);

	boolean removes(List<String> subjectIds);

    boolean insert(TbTrialSubjectEntity tbTrialSubjectEntity);
}

